package com.seventh.blecore.test;

import androidx.annotation.VisibleForTesting;

import com.seventh.blecore.ByteArray;

/**
 * @author chengxin
 * create at 2021/4/20
 * description:测试回调
 */
@VisibleForTesting
public interface UnityCallback {
    void callInt(int value);

    void callBoolean(boolean value);

    void callFloat(float value);

    void callDouble(double value);

    void callByte(byte value);

    void callString(String value);

    /**
     * NOTE: 需要用AndroidJavaObject 包裹，无法接收byte[]
     * Unity的参数写成(AndroidJavaObject obj)
     *
     * @param value 包裹字节数组
     */
    void callByteArray(ByteArray value);

    /**
     * Unity的参数写成(AndroidJavaObject obj)
     */
    void callJavaObject(Object value);
}
